﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using Microhard.ApproveFlow.Buz.Models;
using Microhard.ApproveFlow.Buz.DataAccess;



namespace Microhard.ApproveFlow.Buz.DTO
{
    public class WorkflowDataMaper
    {
        public static void Init()
        {
            #region WorkflowType
            Mapper.CreateMap<ApproveFlowTypeModel, t_WorkFlowType>();
            Mapper.CreateMap<t_WorkFlowType, ApproveFlowTypeModel>();
            #endregion

            #region FlowChart
            Mapper.CreateMap<FlowChartModel, t_FlowChart>();
            Mapper.CreateMap<t_FlowChart, FlowChartModel>();
            #endregion

            #region t_WorkflowDataApproveResult
            Mapper.CreateMap<ApproveResultModel, t_WorkflowDataApproveResult>();
            Mapper.CreateMap<t_WorkflowDataApproveResult, ApproveResultModel>();
            #endregion
        }
    }
}
